#ifndef DOUBLETOSTRING_H_INCLUDED
#define DOUBLETOSTRING_H_INCLUDED

#include <string>
#include <sstream>

class DoubleToString {
    public:
        static inline std::string& dts(const double& myDouble) {
            std::stringstream str;
            str	<< myDouble;
            std::string *returnString = new std::string(str.str());
            return *(returnString);
        }

        static inline std::string& cts(const char& myChar) {
            std::stringstream str;
            str	<< myChar;
            std::string *returnString = new std::string(str.str());
            return *(returnString);
        }
};

#endif // DOUBLETOSTRING_H_INCLUDED
